import React from 'react';
import { Descriptions } from 'antd';

export default class ExtremeDataTab extends React.Component<any, any> {
  render() {
    const { extremumVo2 } = this.props;
    let extremumVo = extremumVo2 || {};
    return (
      <>
        <Descriptions bordered size="small">
          <Descriptions.Item label="最高电压电池子系统号">
            {extremumVo.maxSubsystemSeq}
          </Descriptions.Item>
          <Descriptions.Item label="最高电压电池单体代号">
            {extremumVo.maxVoltageBatteryMonomerNum}
          </Descriptions.Item>
          <Descriptions.Item label="电池单体电压最高值(V)">
            {extremumVo.monomerVoltageMax ? `${extremumVo.monomerVoltageMax}` : ''}
          </Descriptions.Item>
          <Descriptions.Item label="最低电压电池子系统号">
            {extremumVo.minSubsystemSeq}
          </Descriptions.Item>
          <Descriptions.Item label="最低电压电池单体代号">
            {extremumVo.minVoltageBatteryMonomerNum}
          </Descriptions.Item>
          <Descriptions.Item label="电池单体电压最低值(V)">
            {extremumVo.monomerVoltageMin ? `${extremumVo.monomerVoltageMin}` : ''}
          </Descriptions.Item>
          <Descriptions.Item label="最高温度子系统号">
            {extremumVo.maxTemperatureSystemNum}
          </Descriptions.Item>
          <Descriptions.Item label="最高温度探针序号">
            {extremumVo.maxTemperatureProbeNum}
          </Descriptions.Item>
          <Descriptions.Item label="最高温度值(℃)">
            {extremumVo.maxTemperature ? `${extremumVo.maxTemperature}` : ''}
          </Descriptions.Item>
          <Descriptions.Item label="最低温度子系统号">
            {extremumVo.minTemperatureSystemNum}
          </Descriptions.Item>
          <Descriptions.Item label="最低温度探针序号">
            {extremumVo.minTemperatureProbeNum}
          </Descriptions.Item>
          <Descriptions.Item label="最低温度值(℃)">
            {extremumVo.minTemperature ? `${extremumVo.minTemperature}` : ''}
          </Descriptions.Item>
        </Descriptions>
      </>
    );
  }
}
